-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: store multiple double spend attempts #1909
fix: store multiple double spend attempts #1909
Conversation
let mut txs = BTreeSet::new(); | ||
for spend in spends.into_iter() { | ||
txs.insert(spend.spend.spent_tx.clone()); | ||
spend_processing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Earlier only the first spend was sent for spend_processing, but here we do it for all the spends, is this alright?
82f23e3
to
86edf7a
Compare
spend_processing | ||
.send(first_spend.clone()) | ||
.await | ||
.map_err(|e| WalletError::SpendProcessing(e.to_string()))?; | ||
|
||
// use iteration instead of recursion to avoid stack overflow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment not relevant anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is for the one inside the for loop? I'm not sure.
86edf7a
to
c595c80
Compare
c595c80
to
d37ce9d
Compare
No description provided.